package com.example.jack.community.view.me.general;

import android.content.Intent;
import android.os.Bundle;
import android.support.percent.PercentRelativeLayout;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.example.jack.community.R;
import com.example.jack.community.view.me.BlackStatusActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * 通用
 */
public class GenActivity extends BlackStatusActivity {

    //返回图片
    @BindView(R.id.img_back)
    ImageView imgBack;

    //返回文字
    @BindView(R.id.txt_back)
    TextView txtBack;

    //多语言布局
    @BindView(R.id.per_language)
    PercentRelativeLayout perLanguage;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_lan);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.img_back, R.id.txt_back, R.id.per_language})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.img_back://返回按钮
                finish();
                break;
            case R.id.txt_back://返回按钮
                finish();
                break;
            case R.id.per_language:
                startActivity(new Intent(GenActivity.this, LanActivity.class));
                break;
        }
    }
}
